import React from 'react';
import { View, Text } from 'react-native';
import { TabNavigator } from 'react-navigation';
import HomeScreen from './Home';
import MyScreen from './My';


const RootTabs = TabNavigator({

    Home: {
        screen: HomeScreen,
        navigationOptions:{
            tabBarLabel: '首页',
        }
    },
    My: {
        screen: MyScreen,
        // getScreen: () => require('MyScreen').default,
        navigationOptions:{
            tabBarLabel: '我的',
        }
    },

});

export default RootTabs;